package com.hsd.whb.repository;

import com.hsd.whb.entity.Manager;
import com.hsd.whb.entity.MeetingParticipants;
import com.hsd.whb.entity.Participants;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface MeetingParticipantsRepository extends JpaRepository<MeetingParticipants, Integer> {

    MeetingParticipants findByMeetingIdAndParticipantsId(Integer meetingId, Integer participantsId);

    @Query("select participantsId from MeetingParticipants where meetingId=?1")
    List<Integer> getParticipantsIdByMeetingId(Integer meetingId);

}
